package com.copa.gamestore.security.annotation;

import javax.validation.Payload;
import java.lang.annotation.*;

/**
 * @author copa
 * @createDate 2022-09-23 10:15
 * @function
 */
@Retention(RetentionPolicy.RUNTIME)//注解会在class中存在，运行时可经过反射获取
@Target(ElementType.METHOD)//目标是方法
@Documented
public @interface Auth {
    String message() default "不是当前登陆用户";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
